import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.File;

public class Images {
    public static BufferedImage xiyangyang[];
    public static BufferedImage meiyangyang[];
    public static BufferedImage langyangyang[];
    public static BufferedImage huitailang[];
    public static BufferedImage bigwolf[];
    public static BufferedImage bigboss[];
    public static BufferedImage background_1;
    public static BufferedImage background_2;
    public static BufferedImage background_3;
    public static BufferedImage Launchpage_background;
    public static BufferedImage Launchpage_title;
    public static BufferedImage Launchpage_start;
    public static BufferedImage Launchpage_startbig;
    public static BufferedImage Launchpage_aboutUS;
    public static BufferedImage Launchpage_aboutUSbig;
    public static BufferedImage roleSelection_background;
    public static BufferedImage xiyangyang_introduction;
    public static BufferedImage xiyangyang_portrait;
    public static BufferedImage back;
    public static BufferedImage meiyangyang_introduction;
    public static BufferedImage meiyangyang_portrait;

    public static BufferedImage langyangyang_introduction;
    public static BufferedImage langyangyang_portrait;
    public static BufferedImage protectivecover;
    public static BufferedImage bullet;
    public static BufferedImage sheepplane;
    public static BufferedImage graywolf;
    public static BufferedImage bulletbox;
    public static BufferedImage lifebox;
    public static BufferedImage pause;
    public static BufferedImage pause_back;
    public static BufferedImage win_back;
    public static BufferedImage loser_back;
    public static BufferedImage rocket[];
    public static BufferedImage nearattacktool[];
    public static BufferedImage farattacktool[];
    public static BufferedImage xiyangyang_portrait2;
    public static BufferedImage meiyangyang_portrait2;
    public static BufferedImage langyangyang_portrait2;
    public static BufferedImage select;
    public static BufferedImage scoreandround;
    public static BufferedImage aboutUS_background;

    static {
        sheepplane = readImage("images//sheeplane.png");
        graywolf = readImage("images//graywolf.png");
        Launchpage_title = readImage("images//Launchpage_title.png");
        Launchpage_start = readImage("images//Launchpage_startgame.png");
        Launchpage_startbig = readImage("images//Launchpage_startgamebig.png");
        Launchpage_aboutUS = readImage("images//Launchpage_aboutUS.png");
        Launchpage_aboutUSbig = readImage("images//Launchpage_aboutUSbig.png");
        Launchpage_background = readImage("images//Launchpage_background.png");
        aboutUS_background = readImage("images//aboutUS_background.png");
        roleSelection_background = readImage("images//roleSelection_background.png");
        xiyangyang_introduction = readImage("images//xiyangyang_introduction.png");
        xiyangyang_portrait = readImage("images//xiyangyang_portrait.png");
        meiyangyang_introduction = readImage("images//meiyangyang_introduction.png");
        meiyangyang_portrait = readImage("images//meiyangyang_portrait.png");
        langyangyang_introduction = readImage("images//langyangyang_introduction.png");
        langyangyang_portrait = readImage("images//langyangyang_portrait.png");
        back = readImage("images//back.png");
        background_1 = readImage("images//background_1.png");
        background_2 = readImage("images//background_2.png");
        background_3 = readImage("images//background_3.png");
        xiyangyang = new BufferedImage[6];
        xiyangyang[0] = readImage("images//xiyangyang//xiyangyang0.png");
        xiyangyang[1] = readImage("images//xiyangyang//xiyangyang1.png");
        xiyangyang[2] = readImage("images//xiyangyang//xiyangyang1_2.png");
        xiyangyang[3] = readImage("images//xiyangyang//xiyangyang2.png");
        xiyangyang[4] = readImage("images//xiyangyang//xiyangyang2_2.png");
        xiyangyang[5] = readImage("images//xiyangyang//xiyangyang3.png");

        meiyangyang = new BufferedImage[6];
        meiyangyang[0] = readImage("images//meiyangyang//meiyangyang0.png");
        meiyangyang[1] = readImage("images//meiyangyang//meiyangyang1.png");
        meiyangyang[2] = readImage("images//meiyangyang//meiyangyang1_2.png");
        meiyangyang[3] = readImage("images//meiyangyang//meiyangyang2.png");
        meiyangyang[4] = readImage("images//meiyangyang//meiyangyang2_2.png");
        meiyangyang[5] = readImage("images//meiyangyang//meiyangyang3.png");

        langyangyang = new BufferedImage[6];
        langyangyang[0] = readImage("images//langyangyang//langyangyang0.png");
        langyangyang[1] = readImage("images//langyangyang//langyangyang1.png");
        langyangyang[2] = readImage("images//langyangyang//langyangyang1_2.png");
        langyangyang[3] = readImage("images//langyangyang//langyangyang2.png");
        langyangyang[4] = readImage("images//langyangyang//langyangyang2_2.png");
        langyangyang[5] = readImage("images//langyangyang//langyangyang3.png");

        xiyangyang_portrait2 = readImage("images//xiyangyang_portrait2.png");
        meiyangyang_portrait2 = readImage("images//meiyangyang_portrait2.png");
        langyangyang_portrait2 = readImage("images//langyangyang_portrait2.png");


        huitailang = new BufferedImage[4];
        huitailang[0] = readImage("images//huitailang0.png");
        huitailang[1] = readImage("images//huitailang1.png");
        huitailang[2] = readImage("images//huitailang2.png");
        huitailang[3] = readImage("images//huitailang3.png");

        bigwolf = new BufferedImage[3];
        bigwolf[0] = readImage("images//bigwolf//bigwolf0.png");
        bigwolf[1] = readImage("images//bigwolf//bigwolf1.png");
        bigwolf[2] = readImage("images//bigwolf//bigwolf2.png");

        bigboss = new BufferedImage[5];
        bigboss[0] = readImage("images//bigboss//bigboss0.png");
        bigboss[1] = readImage("images//bigboss//bigboss1.png");
        bigboss[2] = readImage("images//bigboss//bigboss1_2.png");
        bigboss[3] = readImage("images//bigboss//bigboss2.png");
        bigboss[4] = readImage("images//bigboss//bigboss2_2.png");

        protectivecover = readImage("images//protectivecover.png");

        bullet = readImage("images//bullet.png");
        rocket = new BufferedImage[2];
        rocket[0] = readImage("images//rocket.png");
        rocket[1] = readImage("images//rocket2.png");
        nearattacktool = new BufferedImage[2];
        nearattacktool[0] = readImage("images//nearattacktool.png");
        nearattacktool[1] = readImage("images//nearattacktool2.png");

        farattacktool = new BufferedImage[2];
        farattacktool[0] = readImage("images//farattacktool.png");
        farattacktool[1] = readImage("images//farattacktool2.png");

        bulletbox = readImage("images//bulletbox.png");
        lifebox = readImage("images//lifebox.png");
        pause_back = readImage("images//pause_back.png");
        pause =  readImage("images//pause.png");
        select = readImage("images//select.png");
        win_back = readImage("images//win_back.png");
        loser_back = readImage("images//loser_back.png");
        scoreandround = readImage("images//scoreandround.png");
    }

    public static BufferedImage readImage(String fileName){
        try{
            BufferedImage img = ImageIO.read(new File(fileName));
            return img;
        }catch(Exception e){
            e.printStackTrace();
            throw new RuntimeException();
        }
    }
}
